package com.visizen.wisdomclass.server.client;

import com.visizen.wisdomclass.server.model.WcUserSystem;
import com.visizen.wisdomclass.server.model.WcUserSystemExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface WcUserSystemMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wc_user_system
     *
     * @mbggenerated
     */
    @SelectProvider(type=WcUserSystemSqlProvider.class, method="countByExample")
    int countByExample(WcUserSystemExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wc_user_system
     *
     * @mbggenerated
     */
    @DeleteProvider(type=WcUserSystemSqlProvider.class, method="deleteByExample")
    int deleteByExample(WcUserSystemExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wc_user_system
     *
     * @mbggenerated
     */
    @Delete({
        "delete from wc_user_system",
        "where user_system_id = #{user_system_id,jdbcType=BIGINT}"
    })
    int deleteByPrimaryKey(Long user_system_id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wc_user_system
     *
     * @mbggenerated
     */
    @Insert({
        "insert into wc_user_system (user_system_id, user_id)",
        "values (#{user_system_id,jdbcType=BIGINT}, #{user_id,jdbcType=BIGINT})"
    })
    int insert(WcUserSystem record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wc_user_system
     *
     * @mbggenerated
     */
    @InsertProvider(type=WcUserSystemSqlProvider.class, method="insertSelective")
    int insertSelective(WcUserSystem record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wc_user_system
     *
     * @mbggenerated
     */
    @SelectProvider(type=WcUserSystemSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="user_system_id", property="user_system_id", jdbcType=JdbcType.BIGINT, id=true),
        @Result(column="user_id", property="user_id", jdbcType=JdbcType.BIGINT)
    })
    List<WcUserSystem> selectByExample(WcUserSystemExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wc_user_system
     *
     * @mbggenerated
     */
    @Select({
        "select",
        "user_system_id, user_id",
        "from wc_user_system",
        "where user_system_id = #{user_system_id,jdbcType=BIGINT}"
    })
    @Results({
        @Result(column="user_system_id", property="user_system_id", jdbcType=JdbcType.BIGINT, id=true),
        @Result(column="user_id", property="user_id", jdbcType=JdbcType.BIGINT)
    })
    WcUserSystem selectByPrimaryKey(Long user_system_id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wc_user_system
     *
     * @mbggenerated
     */
    @UpdateProvider(type=WcUserSystemSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") WcUserSystem record, @Param("example") WcUserSystemExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wc_user_system
     *
     * @mbggenerated
     */
    @UpdateProvider(type=WcUserSystemSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") WcUserSystem record, @Param("example") WcUserSystemExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wc_user_system
     *
     * @mbggenerated
     */
    @UpdateProvider(type=WcUserSystemSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(WcUserSystem record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wc_user_system
     *
     * @mbggenerated
     */
    @Update({
        "update wc_user_system",
        "set user_id = #{user_id,jdbcType=BIGINT}",
        "where user_system_id = #{user_system_id,jdbcType=BIGINT}"
    })
    int updateByPrimaryKey(WcUserSystem record);
}